package main

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.GET("struct", func(ctx *gin.Context) {
		msg := map[string]interface{}{
			"code":    200,
			"message": "success",
		}
		ctx.JSON(http.StatusOK, msg)
	})
	r.Run()
}
